package com.skywaregroup.arenal;

import javax.persistence.*;
import javax.xml.bind.annotation.*;


/**
 * Represents type of practice.<br/> 
 * It is encoded in RZI codes in position 5-7 inclusive.<br/>
 * Example: 2201<b>141</b>015.<br/>
 * This is entity class and is mapped to <b>practices_types</b> table.<br/> 
 */
@XmlRootElement(name="PracticeType") 
@XmlAccessorType(XmlAccessType.NONE) 
@Entity
@Table(name="practices_types")
public class PracticeType {

	@Id 
    @Column(name="code") 
	@XmlElement(name="Code")
	public Integer code; 
	//smallint NOT NULL
	
	@Column(name="name")
	@XmlElement(name="Name")
	public String name;
	//character varying(200) NOT NULL
	
	@Column(name="is_individual")
	@XmlElement(name="IsIndividual")
	public Boolean isIndividual;
	//boolean NOT NULL
	
	@Column(name="can_publish")
	@XmlElement(name="CanPublish")
	public Boolean canPublish;
	//boolean NOT NULL
	
	@Column(name="can_consume")
	@XmlElement(name="CanConsume")
	public Boolean canConsume;
	//boolean NOT NULL
	
}
